* Respond to the model being updated
*/
mw.rcfilters.ui.RclTargetPageWidget.prototype.updateUiBasedOnModel = function () {
- this.titleSearch.setValue( this.model.getValue() );
+ var title = mw.Title.newFromText( this.model.getValue() );
+ this.titleSearch.setValue( title ? title.toText() : this.model.getValue() );
};
}( mediaWiki ) );
output: 'http://host/wiki/Special:RecentChangesLinked?target=Moai',
message: 'Target as subpage in path'
},
+ {
+ input: 'http://host/wiki/Special:RecentChangesLinked/Château',
+ output: 'http://host/wiki/Special:RecentChangesLinked?target=Château',
+ message: 'Target as subpage in path with special characters'
+ },
{
input: 'http://host/wiki/Special:RecentChangesLinked/Moai/Sub1',
output: 'http://host/wiki/Special:RecentChangesLinked?target=Moai/Sub1',